<!DOCTYPE HTML>

<html lang="en">
<head>

<title>JwsHeader.Builder (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="JwsHeader.Builder (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="JwsHeader.Builder.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="JwsHeader.Builder.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="JwsHeader.Builder.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.oauth2.jwt</a></div>
<h2 title="Class JwsHeader.Builder" class="title">Class JwsHeader.Builder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.oauth2.jwt.JwsHeader.Builder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Enclosing class:</dt>
<dd><a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt">JwsHeader</a></dd>
</dl>
<hr>
<pre>public static final class <span class="typeNameLabel">JwsHeader.Builder</span>
extends java.lang.Object</pre>
<div class="block">A builder for <a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt"><code>JwsHeader</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#algorithm(org.springframework.security.oauth2.jose.JwaAlgorithm)">algorithm</a></span>&#8203;(<a href="../jose/JwaAlgorithm.html" title="interface in org.springframework.security.oauth2.jose">JwaAlgorithm</a>&nbsp;jwaAlgorithm)</code></th>
<td class="colLast">
<div class="block">Sets the <a href="../jose/JwaAlgorithm.html" title="interface in org.springframework.security.oauth2.jose"><code>JWA algorithm</code></a> used to digitally sign the JWS or
encrypt the JWE.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt">JwsHeader</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#build()">build</a></span>()</code></th>
<td class="colLast">
<div class="block">Builds a new <a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt"><code>JwsHeader</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#contentType(java.lang.String)">contentType</a></span>&#8203;(java.lang.String&nbsp;contentType)</code></th>
<td class="colLast">
<div class="block">Sets the content type header that declares the media type of the secured
content (the payload).</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#criticalHeader(java.lang.String,java.lang.Object)">criticalHeader</a></span>&#8203;(java.lang.String&nbsp;name,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the critical header that indicates which extensions to the JWS/JWE/JWA
specifications are being used that MUST be understood and processed.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#getHeaders()">getHeaders</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#getThis()">getThis</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#header(java.lang.String,java.lang.Object)">header</a></span>&#8203;(java.lang.String&nbsp;name,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the header.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#headers(java.util.function.Consumer)">headers</a></span>&#8203;(java.util.function.Consumer&lt;java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&gt;&nbsp;headersConsumer)</code></th>
<td class="colLast">
<div class="block">A <code>Consumer</code> to be provided access to the headers allowing the ability to
add, replace, or remove.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#jwk(java.util.Map)">jwk</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;jwk)</code></th>
<td class="colLast">
<div class="block">Sets the JSON Web Key which is the public key that corresponds to the key used
to digitally sign the JWS or encrypt the JWE.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#jwkSetUrl(java.lang.String)">jwkSetUrl</a></span>&#8203;(java.lang.String&nbsp;jwkSetUrl)</code></th>
<td class="colLast">
<div class="block">Sets the JWK Set URL that refers to the resource of a set of JSON-encoded
public keys, one of which corresponds to the key used to digitally sign the JWS
or encrypt the JWE.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#keyId(java.lang.String)">keyId</a></span>&#8203;(java.lang.String&nbsp;keyId)</code></th>
<td class="colLast">
<div class="block">Sets the key ID that is a hint indicating which key was used to secure the JWS
or JWE.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#type(java.lang.String)">type</a></span>&#8203;(java.lang.String&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Sets the type header that declares the media type of the JWS/JWE.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#x509CertificateChain(java.util.List)">x509CertificateChain</a></span>&#8203;(java.util.List&lt;java.lang.String&gt;&nbsp;x509CertificateChain)</code></th>
<td class="colLast">
<div class="block">Sets the X.509 certificate chain that contains the X.509 public key certificate
or certificate chain corresponding to the key used to digitally sign the JWS or
encrypt the JWE.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#x509SHA1Thumbprint(java.lang.String)">x509SHA1Thumbprint</a></span>&#8203;(java.lang.String&nbsp;x509SHA1Thumbprint)</code></th>
<td class="colLast">
<div class="block">Sets the X.509 certificate SHA-1 thumbprint that is a base64url-encoded SHA-1
thumbprint (a.k.a.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#x509SHA256Thumbprint(java.lang.String)">x509SHA256Thumbprint</a></span>&#8203;(java.lang.String&nbsp;x509SHA256Thumbprint)</code></th>
<td class="colLast">
<div class="block">Sets the X.509 certificate SHA-256 thumbprint that is a base64url-encoded
SHA-256 thumbprint (a.k.a.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>B</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="JwsHeader.Builder.html#x509Url(java.lang.String)">x509Url</a></span>&#8203;(java.lang.String&nbsp;x509Url)</code></th>
<td class="colLast">
<div class="block">Sets the X.509 URL that refers to the resource for the X.509 public key
certificate or certificate chain corresponding to the key used to digitally
sign the JWS or encrypt the JWE.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="build()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>build</h4>
<pre class="methodSignature">public&nbsp;<a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt">JwsHeader</a>&nbsp;build()</pre>
<div class="block">Builds a new <a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt"><code>JwsHeader</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <a href="JwsHeader.html" title="class in org.springframework.security.oauth2.jwt"><code>JwsHeader</code></a></dd>
</dl>
</li>
</ul>
<a id="getHeaders()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeaders</h4>
<pre class="methodSignature">protected&nbsp;java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;getHeaders()</pre>
</li>
</ul>
<a id="getThis()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getThis</h4>
<pre class="methodSignature">protected final&nbsp;B&nbsp;getThis()</pre>
</li>
</ul>
<a id="algorithm(org.springframework.security.oauth2.jose.JwaAlgorithm)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>algorithm</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;algorithm&#8203;(<a href="../jose/JwaAlgorithm.html" title="interface in org.springframework.security.oauth2.jose">JwaAlgorithm</a>&nbsp;jwaAlgorithm)</pre>
<div class="block">Sets the <a href="../jose/JwaAlgorithm.html" title="interface in org.springframework.security.oauth2.jose"><code>JWA algorithm</code></a> used to digitally sign the JWS or
encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>jwaAlgorithm</code> - the <a href="../jose/JwaAlgorithm.html" title="interface in org.springframework.security.oauth2.jose"><code>JwaAlgorithm</code></a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="jwkSetUrl(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>jwkSetUrl</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;jwkSetUrl&#8203;(java.lang.String&nbsp;jwkSetUrl)</pre>
<div class="block">Sets the JWK Set URL that refers to the resource of a set of JSON-encoded
public keys, one of which corresponds to the key used to digitally sign the JWS
or encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>jwkSetUrl</code> - the JWK Set URL</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="jwk(java.util.Map)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>jwk</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;jwk&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;jwk)</pre>
<div class="block">Sets the JSON Web Key which is the public key that corresponds to the key used
to digitally sign the JWS or encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>jwk</code> - the JSON Web Key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="keyId(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>keyId</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;keyId&#8203;(java.lang.String&nbsp;keyId)</pre>
<div class="block">Sets the key ID that is a hint indicating which key was used to secure the JWS
or JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keyId</code> - the key ID</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="x509Url(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>x509Url</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;x509Url&#8203;(java.lang.String&nbsp;x509Url)</pre>
<div class="block">Sets the X.509 URL that refers to the resource for the X.509 public key
certificate or certificate chain corresponding to the key used to digitally
sign the JWS or encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x509Url</code> - the X.509 URL</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="x509CertificateChain(java.util.List)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>x509CertificateChain</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;x509CertificateChain&#8203;(java.util.List&lt;java.lang.String&gt;&nbsp;x509CertificateChain)</pre>
<div class="block">Sets the X.509 certificate chain that contains the X.509 public key certificate
or certificate chain corresponding to the key used to digitally sign the JWS or
encrypt the JWE. The certificate or certificate chain is represented as a
<code>List</code> of certificate value <code>String</code>s. Each <code>String</code> in the
<code>List</code> is a Base64-encoded DER PKIX certificate value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x509CertificateChain</code> - the X.509 certificate chain</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="x509SHA1Thumbprint(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>x509SHA1Thumbprint</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;x509SHA1Thumbprint&#8203;(java.lang.String&nbsp;x509SHA1Thumbprint)</pre>
<div class="block">Sets the X.509 certificate SHA-1 thumbprint that is a base64url-encoded SHA-1
thumbprint (a.k.a. digest) of the DER encoding of the X.509 certificate
corresponding to the key used to digitally sign the JWS or encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x509SHA1Thumbprint</code> - the X.509 certificate SHA-1 thumbprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="x509SHA256Thumbprint(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>x509SHA256Thumbprint</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;x509SHA256Thumbprint&#8203;(java.lang.String&nbsp;x509SHA256Thumbprint)</pre>
<div class="block">Sets the X.509 certificate SHA-256 thumbprint that is a base64url-encoded
SHA-256 thumbprint (a.k.a. digest) of the DER encoding of the X.509 certificate
corresponding to the key used to digitally sign the JWS or encrypt the JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x509SHA256Thumbprint</code> - the X.509 certificate SHA-256 thumbprint</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="type(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;type&#8203;(java.lang.String&nbsp;type)</pre>
<div class="block">Sets the type header that declares the media type of the JWS/JWE.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the type header</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="contentType(java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>contentType</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;contentType&#8203;(java.lang.String&nbsp;contentType)</pre>
<div class="block">Sets the content type header that declares the media type of the secured
content (the payload).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>contentType</code> - the content type header</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="criticalHeader(java.lang.String,java.lang.Object)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>criticalHeader</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;criticalHeader&#8203;(java.lang.String&nbsp;name,
                        java.lang.Object&nbsp;value)</pre>
<div class="block">Sets the critical header that indicates which extensions to the JWS/JWE/JWA
specifications are being used that MUST be understood and processed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the critical header name</dd>
<dd><code>value</code> - the critical header value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="header(java.lang.String,java.lang.Object)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>header</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;header&#8203;(java.lang.String&nbsp;name,
                java.lang.Object&nbsp;value)</pre>
<div class="block">Sets the header.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the header name</dd>
<dd><code>value</code> - the header value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
<a id="headers(java.util.function.Consumer)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>headers</h4>
<pre class="methodSignature">public&nbsp;B&nbsp;headers&#8203;(java.util.function.Consumer&lt;java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&gt;&nbsp;headersConsumer)</pre>
<div class="block">A <code>Consumer</code> to be provided access to the headers allowing the ability to
add, replace, or remove.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>headersConsumer</code> - a <code>Consumer</code> of the headers</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>JoseHeader.AbstractBuilder</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="JwsHeader.Builder.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="JwsHeader.Builder.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="JwsHeader.Builder.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040e1a8f8a997cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
